<div id="success">success ...</div>
<div class="photoGroups form" id="group">
    <?php echo $this->Form->create('PhotoGroup'); ?>
    <fieldset>
        <legend><?php echo __('Add Photo Group'); ?></legend>
        <?php
        echo $this->Form->input('name');
        echo $this->Form->input('text');
        ?>
    </fieldset>
    <?php
    echo $this->Js->submit('Send',array(
        'before'=>$this->Js->get('#sending')->effect('fadeIn'),
        'success'=>$this->Js->get('#sending')->effect('fadeOut'),
        'update'=>'#success'
    ));
    echo $this->Form->end();
    ?>
</div>
<div class="actions">
    <h3><?php echo __('Actions'); ?></h3>
    <ul>

        <li><?php echo $this->Html->link(__('List Photo Groups'), array('action' => 'index')); ?></li>
        <li><?php echo $this->Html->link(__('List Photos'), array('controller' => 'photos', 'action' => 'index')); ?> </li>
        <li><?php echo $this->Html->link(__('New Photo'), array('controller' => 'photos', 'action' => 'add')); ?> </li>
    </ul>
</div>
<div id="sending">sending ... </div>
<?php echo $this->Js->writeBuffer(array('cache'=>TRUE)); ?>
